miscellaneous example 19 trigonometric functions